const fetch = require('node-fetch')

const URL_RECOMMEND = "https://api.shejijia.com/search-design/api/v1/search/design/case/3d/bySearchTerm?limit=10&offset=0&sort=sort+asc,stratification+asc,updateDate+desc&searchTerm=&filterQuery=style:%E5%85%A8%E9%83%A8"

const fetchRecommend = () => {
    return fetch(URL_RECOMMEND)
        .then(res => res.json())
        .then(json => json)
}

module.exports = {
    fetchRecommend
}